package com.neverland.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import com.sun.org.apache.bcel.internal.generic.AALOAD;

public class B {
	private String c;
	@Autowired
	private A a;

	public String getC() {
		return c;
	}

	public void setC(String c) {
		this.c = c;
	}
	
	public static void main(String args[])
	{
		/*
		ApplicationContext ctx=new FileSystemXmlApplicationContext("WEB-INF/applicationContext.xml"); 
		B b = (B)ctx.getBean("bean2");
		System.out.println(b.getA()+b.getB()+b.getC());*/
		
	}

}
